<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/my.js">
	
</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
$(function(){
	$("#name").keyup(
			function(){
				//获取输入框的内容
				var value = $(this).val();
				var url = "UserslandingServlet?id=3&key="+value;
				//将内容发送到后台
				 $.get(url,function(data){
					for(var a in data){
						var e = $("<option label="+data[a]+"   value="+data[a]+">");
						$("#mydata").append(e);
					}
                   },"json");	
				//响应应的提示信息
			}		
	);
});
</script>

<div id="divmenu">
	<a
		href="FunctionServlet?id=1&type=1">文学</a>
	<a
		href="FunctionServlet?id=1&type=2">生活</a>
	<a
		href="FunctionServlet?id=1&type=3">计算机</a>
	<a
		href="FunctionServlet?id=1&type=4">外语</a>
	<a
		href="FunctionServlet?id=1&type=5">经管</a>
	<a
		href="FunctionServlet?id=1&type=6">励志</a>
	<a
		href="FunctionServlet?id=1&type=7">社科</a>
	<a
		href="FunctionServlet?id=1&type=8">学术</a>
	<a
		href="FunctionServlet?id=1&type=9">少儿</a>
	<a
		href="FunctionServlet?id=1&type=10">艺术</a>
	<a
		href="FunctionServlet?id=1&type=11">原版</a>
	<a
		href="FunctionServlet?id=1&type=12">科技</a>
	<a
		href="FunctionServlet?id=1&type=13">考试</a>
	<a
		href="FunctionServlet?id=1&type=14">生活百科</a>
	<a href="FunctionServlet?id=1&type=0"
		style="color:#FFFF00">全部商品目录</a>
</div>
<div id="divsearch">
	<form action="${pageContext.request.contextPath}/findProductBySearch"
		method="post">
		<table width="100%" border="0" cellspacing="0">
			<tr>
				<td style="text-align:right; padding-right:220px">
				Search <input
					type="text" name="name" class="inputtable" onkeyup="searchName();"
					id="name" list="mydata"/>
					<datalist id="mydata">
           
		            </datalist>
					<input type="image" src="images/serchbutton.gif"
					border="0" style="margin-bottom:-4px">
				</td>
			</tr>
		</table>

	</form>
</div>
<div id="content"
	style="background-color:white;width:128px; text-align:left;margin-left:945px;color:black;float:left;margin-top: -20px;display: none">
</div>